// 学校院系名称  数据模块
const runningDetailsPage = (currentPage,pageCount) => {
    return $axios({
        url: "/sports/st-dept/getDeptNameAndDidList/list/"+currentPage+"/" + pageCount,
        method: 'post'
    })
}

//学校院系名称  添加院系接口
const stDeptDtoAdd = (data) => {
    return $axios({
        url: "/sports/st-dept/StDeptDto/add",
        method: 'post',
        data
    })
}

//学校院系名称  添加院系接口
const stDeptDtoUpdate = (data) => {
    return $axios({
        url: "/sports/st-dept/StDeptDto/update",
        method: 'post',
        data
    })
}


//学校院系名称  删除院系接口 根据id删除
const stDeptDtoDelete = (id) => {
    return $axios({
        url: "/sports/st-dept/StDeptDto/delete/"+id,
        method: 'post'
    })
}



/*
* 根据id查询
* */

const SelectByIdPStDeptDto = (id) => {
    return $axios({
        url: "/sports/st-dept/StDeptDto/selectById/"+id,
        method: 'post'
    })
}




//获取学校下拉框
const getDeptNameAndDidList = () => {
    return $axios({
        url: "/sports/st-school/getDeptNameAndDidList",
        method: 'get'
    })
}





/*
*
* */
const StSchoolPage = (params,data) => {
    return $axios({
        url: "/sports/st-school/getSchoolMessageList",
        method: 'post',
        data,
        params
    })
}


//学校添加  添加院系接口
const StSchoolAddApi = (data) => {
    return $axios({
        url: "/sports/st-school/AddSchool",
        method: 'post',
        data
    })
}



//学校根据id删除
const deleteStSchoolApi = (id) => {
    return $axios({
        url: "/sports/st-school/DeleteById/"+id,
        method: 'get'
    })
}

/*
* 根据id查询
* */
const SelectByIdSchool = (id) => {
    return $axios({
        url: "/sports/st-dept/StDeptDto/selectById/"+id,
        method: 'post'
    })
}